<?php

namespace App\Model;

class  ConfigClass extends BaseModel
{
    /**
     * 获取配置列表
     * @param $where
     * @return array
     * @throws \EasySwoole\Mysqli\Exceptions\ConnectFail
     * @throws \EasySwoole\Mysqli\Exceptions\Option
     * @throws \EasySwoole\Mysqli\Exceptions\PrepareQueryFail
     * @throws \Throwable
     */
   public function getConfigClassMenuListAll($where){
       $condition = $this->analysisWhere($where);
       return $this->getAll($condition);
   }
    /**
     * 获取单个菜单
     * @param $where
     * @return \EasySwoole\Mysqli\Mysqli|mixed|null
     * @throws \EasySwoole\Mysqli\Exceptions\ConnectFail
     * @throws \EasySwoole\Mysqli\Exceptions\PrepareQueryFail
     * @throws \Throwable
     */
    public function getInfo($where)
    {
        return $this->findOne($where);
    }
}